package com.koron.order.experiment.mapper;

import com.koron.order.experiment.bean.po.ExperimentItemParamsPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (ExperimentItemParams)表数据库访问层
 *
 * @author zhouj
 * @since 2021-10-09 09:09:45
 */
public interface ExperimentItemParamsMapper {

    int insertOrUpdate(ExperimentItemParamsPo experimentItemParams);

    int insertOrUpdateBatch(@Param("list") List<ExperimentItemParamsPo> experimentItemParams);

    int insert(ExperimentItemParamsPo experimentItemParams);

    int insertBatch(@Param("list") List<ExperimentItemParamsPo> experimentItemParamsList);

    int update(ExperimentItemParamsPo experimentItemParams);

    int deleteById(String id);

    ExperimentItemParamsPo queryById(String id);

    List<ExperimentItemParamsPo> queryList(ExperimentItemParamsPo experimentItemParams);

    int deleteByBusinessId(@Param("experimentId") String experimentId, @Param("experimentEquipId") String experimentEquipId, @Param("equipmentId") String equipmentId);

    int deleteByItemId(@Param("itemId") String itemId);
}